<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <script>
    // let arr = [10, 20, 20];
    let arr = ['贝贝', '晶晶', '欢欢', '盈盈', '妮妮'];
    // 使用数组  数组名[索引号] 索引号从0开始
    console.log(arr);
    console.log(arr[0]);
    console.log(arr[1]);
    console.log(arr[2]);
    console.log(arr[3]);
    console.log(arr[4]);

    // test
    let week = ['星期一', '星期二', '星期三', '星期四', '星期五', '星期六', '星期日'];
    console.log(week[6]);
    console.log(arr.length)
  </script>
</body>

</html>